package com.csjy.migration.hnnd.workflow;

import com.csjy.migration.hnnd.DbUtil;
import com.csjy.migration.hnnd.ProgramArgument;
import com.csjy.migration.hnnd.annotation.Task;
import com.csjy.migration.hnnd.business.SourceBusinessData;

import java.util.Map;


/*
申请更改资料(item-datum-alter-hny)
phs
*/

public class ItemDatumAlterHny extends WorkflowMigration{

    public ItemDatumAlterHny(DbUtil sourceDbUtil, DbUtil targetDbUtil, SourceBusinessData sourceData, ProgramArgument programArgument, String projectId, String procInstId, Map procInstRow) throws Exception {
        super(sourceDbUtil, targetDbUtil, sourceData, programArgument, projectId, procInstId, procInstRow);
        this.customInitData();
    }

    @Override
    public void customInitData() throws Exception {
        this.curBizType = "sqggzl";
    }

    @Override
    public void customInsertOrUpdateData() throws Exception {

    }


    @Task("申请更改资料@项目经理提交申请")
    public void sqxmjltjsq() throws Exception {
        this.curAffixTypeCommon="ggfj";

        this.curModelMap.put("all", new String[]{"task1535532060307","下一步"});


        this.setCommonData(true,null);
    }
    @Task("申请更改资料@风控D经理审核")
    public void sqfkdjlsh() throws Exception {

        this.curModelMap.put("提交综合部", new String[]{"task1535532067327","提交综合部"});
        this.curModelMap.put("提交审核", new String[]{"task1535532063489","提交审核"});
        this.curModelMap.put("不通过", new String[]{"endbty","不通过"});

        this.setCommonData(true,null);
    }
    @Task("申请更改资料@风控部门经理审核")
    public void sqfkbmjlsh() throws Exception {

        this.curModelMap.put("提交综合部", new String[]{"task1535532067327","提交综合部"});
        this.curModelMap.put("提交审核", new String[]{"task1535532063489","提交审核"});
        this.curModelMap.put("不通过", new String[]{"endbty","不通过"});


        this.setCommonData(true,null);
    }
    @Task("申请更改资料@总经理审核")
    public void sqzjlsh() throws Exception {

        this.setCommonData(true,null);
    }
    @Task("申请更改资料@综合部确认更改")
    public void sqzhbqrgg() throws Exception {

        /*this.curModelMap.put("已更改并结束", new String[]{"",""});
        this.curModelMap.put("未更改并结束", new String[]{"",""});*/
        this.curModelMap.put("提交更改结论书", new String[]{"task1563171249775","提交更改结论书"});


        this.setCommonData(true,null);
    }
    @Task("申请更改资料@评审秘书更改项目结论书")
    public void sqpsmsggxmjls() throws Exception {
        this.curAffixType = "tjfj";

        /*this.curModelMap.put("已更改", new String[]{"",""});
        this.curModelMap.put("未更改", new String[]{"",""});
     */

        this.setCommonData(true,null);
    }
    @Task("更改审批资料@项目经理提交申请")
    public void ggxmjltjsq() throws Exception {
        sqxmjltjsq();
    }
    @Task("更改审批资料@风控D经理审核")
    public void ggfkdjlsh() throws Exception {
        sqfkdjlsh();
    }
    @Task("更改审批资料@项目D经理审核")
    public void ggxmdjlsh() throws Exception {

        this.setCommonData(true,null);
    }
    @Task("更改审批资料@风控部门经理审核")
    public void ggfkbmjlsh() throws Exception {
        sqfkbmjlsh();
    }
    @Task("更改审批资料@风控部经理审核")
    public void ggfkbjlsh() throws Exception {
        sqfkbmjlsh();
    }
    @Task("更改审批资料@总经理审核")
    public void ggzjlsh() throws Exception {
        sqzjlsh();
    }
    @Task("更改审批资料@综合部确认更改")
    public void ggzhbqrgg() throws Exception {

        sqzhbqrgg();
    }



 
}
